package cn.stylefeng.guns.modular.inventory.mapper;

import cn.stylefeng.guns.modular.inventory.entity.MoveDiskDetailed;
import cn.stylefeng.guns.modular.inventory.model.params.MoveDiskDetailedParam;
import cn.stylefeng.guns.modular.inventory.model.result.MoveDiskDetailedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 动盘明细表 Mapper 接口
 * </p>
 *
 * @author hu
 * @since 2019-08-08
 */
public interface MoveDiskDetailedMapper extends BaseMapper<MoveDiskDetailed> {

    /**
     * 获取列表
     *
     * @author hu
     * @Date 2019-08-08
     */
    List<MoveDiskDetailedResult> customList(@Param("paramCondition") MoveDiskDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author hu
     * @Date 2019-08-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") MoveDiskDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author hu
     * @Date 2019-08-08
     */
    Page<MoveDiskDetailedResult> customPageList(@Param("page") Page page
    		, @Param("paramCondition") MoveDiskDetailedParam paramCondition
    		, @Param("condition") String condition,@Param("deptId")Long deptId,@Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author hu
     * @Date 2019-08-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") MoveDiskDetailedParam paramCondition);

    Page<MoveDiskDetailedResult> findMoveDiskDetailed(@Param("page") Page page, @Param("paramCondition")MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findByGoodsList(@Param("paramCondition") MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findByDetailedList(@Param("paramCondition") MoveDiskDetailedParam moveDiskDetailedParam);

    Page<MoveDiskDetailedResult> deleteList(@Param("page") Page page, @Param("paramCondition") MoveDiskDetailedParam moveDiskDetailedParam, @Param("condition") String condition
    		,@Param("deptId")Long deptId);

    List<MoveDiskDetailedResult> historyDetailedList(@Param("paramCondition")MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findByDetailed(@Param("paramCondition")MoveDiskDetailedParam moveDiskDetailedParam);

    List<MoveDiskDetailedResult> findPositionList(@Param("paramCondition")MoveDiskDetailedParam param);

    Page<MoveDiskDetailedResult> abnormalList(@Param("page")Page pageContext, @Param("paramCondition")MoveDiskDetailedParam param);

    List<MoveDiskDetailedResult> spreadList(@Param("paramCondition")MoveDiskDetailedParam stockParam);

	Page<MoveDiskDetailedResult> querylistPageBySpec(@Param("page")Page pageContext, @Param("paramCondition")MoveDiskDetailedParam moveDiskDetailedParam, @Param("condition")String condition);

	List<MoveDiskDetailedResult> findListBySpec(@Param("paramCondition")MoveDiskDetailedParam param);

    List<MoveDiskDetailedResult> findListByDiskDetailed(@Param("paramCondition")MoveDiskDetailedParam param);

	MoveDiskDetailedResult findBySpec(@Param("paramCondition")MoveDiskDetailedParam param);

	List<MoveDiskDetailedResult> appabnormalliststaylist(@Param("paramCondition")MoveDiskDetailedParam param,@Param("deptId")Long deptId);
}
